package com.itcast.n5_堆内存;

import java.io.IOException;
import java.util.ArrayList;

/**
 * @program: jvm
 * @description:
 * @author: flyduck
 * @create: 2024-09-20 16:27
 **/
public class Test02_使用arthas查看堆内存的used_total_max变化的过程 {
    public static void main(String[] args) throws IOException {
        ArrayList<Object> objects = new ArrayList<Object>();
        while (true) {
            System.out.println("添加一次");
            objects.add(new byte[1024 * 1024 * 100]);
        }
    }
}
